From 1d3961b34258a7a8c97ca12993220554369fccb1 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 4 Dec 2010 21:49:44 +0900 Subject: [PATCH] Fixing gtk_cell_area_box_focus(). the ->focus() method was getting mixed up when more than one cell was in the same group (not aligned), added the proper check to break out of the loop on time. --- gtk/gtkcellareabox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c index e24119a75a..e69a323150 100644 --- a/gtk/gtkcellareabox.c +++ b/gtk/gtkcellareabox.c @@ -1967,7 +1967,7 @@ gtk_cell_area_box_focus (GtkCellArea *area, CellGroup *group = &g_array_index (priv->groups, CellGroup, i); for (list = (cycle == FOCUS_NEXT) ? g_list_first (group->cells) : g_list_last (group->cells); - list; list = (cycle == FOCUS_NEXT) ? list->next : list->prev) + cycled_focus == FALSE && list; list = (cycle == FOCUS_NEXT) ? list->next : list->prev) { CellInfo *info = list->data; -- 2.30.2